package com.cmict.data.bpm.framework.bpm.core.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

import javax.validation.constraints.NotNull;

@SuppressWarnings("ALL")
@Data
public class BpmAllProcessInstanceResultEvent extends ApplicationEvent {

    /**
     * 流程实例的编号
     */
    @NotNull(message = "流程实例的编号不能为空")
    private String id;
    /**
     * 流程实例的结果
     */
    @NotNull(message = "流程实例的结果不能为空")
    private Integer result;

    public BpmAllProcessInstanceResultEvent(Object source) {
        super(source);
    }

}
